package day0601;

public class Test4 {

    public static void main(String[] args) {
        int age=3;
        System.out.println( age>18? "成年人" : "未成年人" );

        //商品价格是price
        //判断price是否大于500，如果符合就打八折
        double  price=501.0;
        double  payMoney=price>500 ?  price*0.8  : price;
        System.out.println(payMoney);


        int year=2023;
        String rs=   (year%400==0 || (year%4==0&&year%100!=0))? "是闰年" : "不是闰年";
        System.out.println(rs);

    }


}







